<?php
/**
 * 同步客户消费订单 （同步erp订单至第三方平台）
 */

namespace App\Console\Commands\Rakuten;

use App\Logic\Plat\SyncPlatOrder;
use Illuminate\Console\Command;

class SyncCustomerOrder extends Command
{

    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'erp-order:sync-customer-order';

    /**
     * The console command description.
     * @var string
     */
    protected $description = 'exe func';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Execute the console command.
     */
    public function handle()
    {
        $orderIds = [];
        //$orderIds = [
        //    '407083-20241210-0615210139','407083-20241210-0766909988','407083-20241210-0804610060','407083-20241210-0922909972','407083-20241210-0152110507',
        //    '407083-20241210-0216310516','407083-20241210-0361210584','407083-20241210-0452210589','407083-20241210-0669110706','407083-20241210-0690610736',
        //    '407083-20241210-0763910501','407083-20241210-0035410978','407083-20241210-0071210963','407083-20241210-0114610765','407083-20241210-0122110902',
        //    '407083-20241210-0136711001','407083-20241210-0207410829','407083-20241211-0515010888','407083-20241211-0137811150','407083-20241212-0290811400',
        //    '407083-20241212-0330511527','407083-20241213-0483111390','407083-20241214-0778211485','407083-20241214-0872011557','407083-20241214-0115511682',
        //    '407083-20241214-0102011897','407083-20241214-0152211690','407083-20241215-0220911694','407083-20241215-0437911900','407083-20241215-0629911638'
        //];
        SyncPlatOrder::syncCustomerOrder($orderIds);

        $this->info('finish!');
    }

}
